import 'package:flutter/cupertino.dart';
import 'package:flutter/src/widgets/framework.dart';
import 'package:flutter_app/BaseMaterialWidget.dart';

class PageLayoutDemo2 extends BaseMaterialWidget {
  @override
  Widget buildContent(BuildContext context) {
    return Stack(
      children: <Widget>[
        Align(
          alignment: Alignment.topLeft,
          child: Image.asset('images/lake.jpg', width: 100, height: 100,),
        ),
        Align(
          alignment: Alignment.topRight,
          child: Image.asset('images/lake.jpg', width: 100, height: 100),
        ),
        Align(
          alignment: Alignment.bottomLeft,
          child: Image.asset('images/lake.jpg', width: 100, height: 100),
        ),
        Align(
          alignment: Alignment.bottomRight,
          child: Image.asset('images/lake.jpg', width: 100, height: 100),
        ),
        Align(
          alignment: Alignment.center,
          child: Image.asset('images/lake.jpg', width: 100, height: 100),
        ),
      ],
    );
  }

  @override
  String getTitle() {
    return '页面布局2';
  }
}
